com.justhis.lucene.xml
Class IndexFiles

java.lang.Object
  extended bycom.justhis.lucene.xml.IndexFiles

public class IndexFiles
extends java.lang.Object

create index from xml files

Version:
$Revision: 1.1 $
Author:
acai

Constructor Summary
IndexFiles()
           
 
Method Summary
static void addDocument(java.lang.String indexPath, java.lang.String filePath)
          ??????????????????
static void deleteDocument(java.lang.String indexPath, java.lang.String keyId)
          ??????????????????
static void indexDocs(org.apache.lucene.index.IndexWriter writer, java.io.File file)
          ??????????????
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexFiles

public IndexFiles()
Method Detail

indexDocs

public static void indexDocs(org.apache.lucene.index.IndexWriter writer,
                             java.io.File file)
                      throws javax.xml.parsers.ParserConfigurationException,
                             org.xml.sax.SAXException,
                             java.io.IOException
??????????????

Parameters:
writer - lucene writer
file - ????????????
Throws:
javax.xml.parsers.ParserConfigurationException - ??????xml??????????????????????
org.xml.sax.SAXException - ????sax????xml????????
java.io.IOException - ????????????????

addDocument

public static void addDocument(java.lang.String indexPath,
                               java.lang.String filePath)
                        throws LuceneException
??????????????????

Parameters:
indexPath - ????????????????
filePath - ????????
Throws:
LuceneException - ??????????XML??????????????.

deleteDocument

public static void deleteDocument(java.lang.String indexPath,
                                  java.lang.String keyId)
                           throws LuceneException
??????????????????

Parameters:
indexPath - ????????
keyId - ?????? ??????????????????objectid??????????
Throws:
LuceneException - ??????????????????IO????


Copyright © 2003 EastNetworks.Net(China)Co.,Ltd.. All Rights Reserved.